cmake_minimum_required(VERSION 3.8)
add_library(test_lib STATIC
    test-main.cpp
    test-utils.cpp
)
target_link_libraries(test_lib limbo)

add_executable(00-details 00-details.cpp)
target_link_libraries(00-details test_lib)
add_test(00-details "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/00-details")

add_executable(01-ip 01-ip.cpp)
target_link_libraries(01-ip test_lib)
add_test(01-ip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/01-ip")

add_executable(02-udp 02-udp.cpp)
target_link_libraries(02-udp test_lib)
add_test(02-udp "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/02-udp")

add_executable(03-slip 03-slip.cpp)
target_link_libraries(03-slip test_lib)
add_test(03-slip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/03-slip")

add_executable(04-ip+slip 04-ip+slip.cpp)
target_link_libraries(04-ip+slip test_lib)
add_test(04-ip+slip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/04-ip+slip")

add_executable(05-ethernet 05-ethernet.cpp)
target_link_libraries(05-ethernet test_lib)
add_test(05-ethernet "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/05-ethernet")

add_executable(06-arp 06-arp.cpp)
target_link_libraries(06-arp test_lib)
add_test(06-arp "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/06-arp")

add_executable(07-arp+ethernet 07-arp+ethernet.cpp)
target_link_libraries(07-arp+ethernet test_lib)
add_test(07-arp+ethernet "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/07-arp+ethernet")

add_executable(10-udp+ip 10-udp+ip.cpp)
target_link_libraries(10-udp+ip test_lib)
add_test(10-udp+ip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/10-udp+ip")

add_executable(11-udp-connection 11-udp-connection.cpp)
target_link_libraries(11-udp-connection test_lib)
add_test(11-udp-connection "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/11-udp-connection")

add_executable(12-udp-receiver 12-udp-receiver.cpp)
target_link_libraries(12-udp-receiver test_lib)
add_test(12-udp-receiver "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/12-udp-receiver")

add_executable(13-udp+ip+slip 13-udp+ip+slip.cpp)
target_link_libraries(13-udp+ip+slip test_lib)
add_test(13-udp+ip+slip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/13-udp+ip+slip")

add_executable(20-icmp+ip 20-icmp+ip.cpp)
target_link_libraries(20-icmp+ip test_lib)
add_test(20-icmp+ip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/20-icmp+ip")

add_executable(30-customization 30-customization.cpp)
target_link_libraries(30-customization test_lib)
add_test(30-customization "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/30-customization")

add_executable(90-full-slip 90-full-slip.cpp)
target_link_libraries(90-full-slip test_lib)
add_test(90-full-slip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/90-full-slip")

add_executable(91-full-ethernet 91-full-ethernet.cpp)
target_link_libraries(91-full-ethernet test_lib)
add_test(91-full-ethernet "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/91-full-ethernet")

